<?php

/**
 * @category   Ac
 * @package    Application_Model
 * @copyright  Orient Network Ltd
 * @license    Closed
 * @author     Olivier Bregeras
 */
class Model_Tag extends Ac_Model
{

    const STATUS_ACTIVE  = 1;
    const STATUS_DELETED = 3;

    protected static  $_collection = 'tag';

    /**
     *
     * @var array define the requirements for this model
     */
    protected static $_requirements = array(
        //'un'  => array('Required', 'Validator:EmailAddress'), //Email
    );

    protected static $_transcript = array(
        '_id'	=> '_id',
        'nm'	=> 'name',
        'tc'	=>'tag_count',
   );

    public function __construct($data = array(), $config = array())
	{
        $config['collection'] = 'tag';
        self::ensureIndex(array('nm'));
        self::ensureIndex(array('tc'));
        parent::__construct($data, $config);
    }

    public function __get($name)
    {
    	return parent::__get($name);
    }
    
    public function getTagCount()
	{
		
	}
}
